package com.zjf.carpark.entities;

import java.io.Serializable;

/**
 * 用户User实体类
 */
public class User implements Serializable {
    private Integer userId;//用户ID
    private String userName;//用户名
    private String userPwd;//用户密码
    private Integer roleId;//权限ID
    private Boolean flag;//用户状态
    private String userTel;//用户电话
    private String roleName;
    private String realName;//真实姓名
    private String headImg;//头像
    private Integer deleteState;

    public User() {
    }

    public User(Integer userId, String userName, String userPwd, Integer roleId, Boolean flag, String userTel, String roleName, String realName, String headImg, Integer deleteState) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.roleId = roleId;
        this.flag = flag;
        this.userTel = userTel;
        this.roleName = roleName;
        this.realName = realName;
        this.headImg = headImg;
        this.deleteState = deleteState;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public Integer getDeleteState() {
        return deleteState;
    }

    public void setDeleteState(Integer deleteState) {
        this.deleteState = deleteState;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", roleId=" + roleId +
                ", flag=" + flag +
                ", userTel='" + userTel + '\'' +
                ", roleName='" + roleName + '\'' +
                ", realName='" + realName + '\'' +
                ", headImg='" + headImg + '\'' +
                ", deleteState=" + deleteState +
                '}';
    }
}
